<%@ Page  Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="cHead" ContentPlaceHolderID="cphHead" runat="server">
    <% this.Page.Title = (string)ViewData["PageTitle"]; %>
</asp:Content>

<asp:Content ID="cMainContent" ContentPlaceHolderID="cphMainContent" runat="server">
    <div id="convoc">
        <div class="errorContent"><span><%= ViewData["ErrorMessage"]%></span></div>
   
        <div class="hr1">&nbsp;</div>
    
        <% if(ViewData["OtherConvoc"] != null){ %>
        <h1>Voir aussi les autres convocs <%= ((string)ViewData["SectionName"]).ToLower() %></h1>
        <ul>
        <% foreach (tSite_Convoc c in (List<tSite_Convoc>)ViewData["OtherConvoc"])
           { %>
            <li><%= Html.ActionLink("Convoc du " + c.StartDate.ToString("dd/MM/yyyy") + " au " + c.EndDate.ToString("dd/MM/yyyy"), "Detail", new { controller = "Convoc", systemName = (string)ViewData["SystemName"], ID = c.ID }, new { title = "Convoc du " + c.StartDate.ToString("dd/MM/yyyy") + " au " + c.EndDate.ToString("dd/MM/yyyy") })%></li>            
        <% } %>
        </ul>
        <% } %>
    </div>
</asp:Content>

<asp:Content ID="cAdminMenu" runat="server" ContentPlaceHolderID="cphAdminMenu">
    <% if ((UserType)ViewData["UserType"] != UserType.User){  %>
    <ul id="adminMenu">
        <li class="create"><%= Html.ActionLink(ScoutNET.Resources.Convoc_Index_CreateLink, "Create", new { controller = "Convoc", systemName = (string)ViewData["SystemName"] })%></li>
    </ul>
    <% } %>
</asp:Content>
